package com.jibei.mendo.utils;

import android.util.Log;

import com.cosofteck.rkdevlib.RkDevApi;

/**
 * Created by lhl on 2019/9/13.
 */
public class RkDevApiUtil {

    private RkDevApi rkDevApi;

    private RkDevApiUtil() {
        rkDevApi = new RkDevApi();
    }

    public static RkDevApiUtil getInstance() {
        return RkDevApiUtil.Holder.instance;
    }

    private static class Holder {
        private static final RkDevApiUtil instance = new RkDevApiUtil();
    }

    public boolean checkIdPermission() {
        if (rkDevApi.CheckIdPermission() == 1) {
            //check ok
            Log.d("lhl", "check ok");
            return true;
        }
        return false;
    }
}
